﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core
{
    public partial class DepartmentLevel
    {
        public static DepartmentLevel Get(DAL.DataAccessLayer dc, Guid id)
        {
            var q = from d in dc.DataContext.DepartmentLevels
                    where d.Id.Equals(id)
                    select d;
            return q.Single<DepartmentLevel>();
        }
    }
}
